import request from '@/utils/request'

/**
 * 获取考勤的总人数
 */
export function getAttendence() {
  return request({
    url: '/attendance/summary',
    method: 'get'
  })
}

/**
 * 获取未戴安全帽通报
 */
export function getHelmetSign() {
  return request({
    url: '/camera/count',
    method: 'get'
  })
}

/**
 * 获取超时未离场人员
 */
export function getNotLeave() {
  return request({
    url: '/attendance/notLeave',
    method: 'get'
  })
}

export function getProjectInfo(projectId) {
  return request({
    url: `/project/detailProject/${projectId}`,
    method: 'get'
  })
}
